package com.xuecheng.base.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * 分页查询分页参数
 *
 * @author itcast
 */
@Data
@ApiModel("分页查询分页参数")
public class PageParams {

    @ApiModelProperty(value = "页码",example = "1")
    private Long pageNo = 1L;

    @ApiModelProperty(value = "每页记录数",example = "30")
    private Long pageSize = 30L;

    public PageParams() {
    }

    public PageParams(Long pageNo, Long pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
}
